Gets the element with the specified key.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Default 
Property 
Item ( _
	
key 
As K _
) 
As V
C#
public V 
this[
		K 
key
] { 
get; 
set; }
Visual C++
public:
virtual 
property V 
default[K 
key] {
		V 
get (K 
key) 
sealed;
	
void 
set (K 
key, V 
value) 
sealed;
}
JavaScript
function get_
item(
key);
function set_
item(
value);

Parameters

key
Type: K
The key of the element to get.

Return Value

The element with the specified key.

Exceptions

Exception Condition
NotSupportedException Thrown when an attempt is made to set this property.
ArgumentNullException Thrown when key is null.
KeyNotFoundException Thrown when the property is retrieved and no key is found.

See Also